/*
 * @Author: lihaonan
 * @Date: 2024-06-24 15:05:25
 * @LastEditors: lihaonan
 * @LastEditTime: 2024-09-29 14:08:30
 * @Description: 活动
 */
const BASE_URL_EXCEPTION = "/app";
import http from "@/utils/http";

// 活动列表
export const getActList = (params:{}) => {
    return http.get(`${BASE_URL_EXCEPTION}/act/list`,params);
};
// 添加活动
export const addActList = (data:{}) => {
    return http.post(`${BASE_URL_EXCEPTION}/act`,data);
};
// 报名活动
export const addActSign = (data:{}) => {
    return http.post(`${BASE_URL_EXCEPTION}/act/sign`,data);
};
// 关注活动
export const addCollect = (data:{}) => {
    return http.post(`${BASE_URL_EXCEPTION}/collect`,data);
};
// 关注活动
export const delCollect = (id:string) => {
    return http.delete(`${BASE_URL_EXCEPTION}/collect/${id}`);
};
// 关注列表
export const getCollectList = (params:{}) => {
    return http.get(`${BASE_URL_EXCEPTION}/collect/page`,params);
};